package com.langll.ai.controller;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author langll
 * @des 登陆
 * @date 2025/4/14
 */
@RestController
@OpenAPIDefinition(info = @Info(title = "login API", version = "1.0", description = "login"))
public class LoginController {

    @Operation(summary = "解析文件并分片")
    @PostMapping("/login")
    public ResponseEntity<Map<String, String>> login(@RequestBody String username, @RequestBody String password) {
        Map<String, String> map = new HashMap<>();
        map.put("token","AAA-BBB-CCC");
        return ResponseEntity.ok(map);
    }
}
